package com.pro.common.service.pay.model.db;

import com.pro.common.api.CommonConst;
import com.pro.common.api.model.BaseConfigModel;
import com.pro.common.api.model.auth.IAdminClass;
import com.pro.common.api.pay.model.db.PayMerchant;
import com.pro.framework.javatodb.annotation.JTDField;
import com.pro.framework.javatodb.annotation.JTDTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "商户支持的银行")
@JTDTable(entityId = 319,
        module = CommonConst.Modules.pay,
        sequences = {
                "UNIQUE KEY `merchantCode_code` (`merchant_code`,`code`)",
        })
public class PayoutBank extends BaseConfigModel implements IAdminClass {
    @Schema(description = "商户编码")
    @JTDField(entityClass = PayMerchant.class)
    private String merchantCode;
    @Schema(description = "银行卡编号")
    private String code;
    @Schema(description = "名称")
    private String payoutBankName;
    @Schema(description = "管理端显示")
    @JTDField(defaultValue = "1")
    private Boolean showAdmin;
}
